package com.ccsu.joysport.repository;

import com.ccsu.joysport.entity.Club;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface ClubRepository extends JpaRepository<Club, String> {

        List<Club> findByClubNameContainingIgnoreCaseOrClubDescContainingIgnoreCase(String clubName, String clubDesc);

        List<Club> findByClubIdIn(List<String> clubIds);

        List<Club> findByClubUserName(String clubUserName);

        List<Club> findByClubUser(String clubUser);

        Optional<Club> findByClubId(String clubId);
}
